<div class="page-header">
    <h3>- Edition - Utilisateur #<?php echo $user_info->id?></h3>
</div>
<?php
/* Variables for form*/
$username = array('id' => 'username', 'name' => 'username', 'value' => $user_info->username, 'size' => 50);
$email = array ('id' => 'email', 'name' => 'email', 'value' => $user_info->email, 'size' => 50);
$firstname = array ('id' => 'firstname', 'name' => 'firstname', 'value' => $user_info->firstname, 'size' => 50);
$lastname = array ('id' => 'lastname', 'name' => 'lastname', 'value' => $user_info->lastname, 'size' => 50);
// Roles
$role_options = array();
$role_options[0] = '- Role -';
foreach ($user_roles as $roles){
    $role_options[$roles->id] = $roles->role;
}
$submit = array('class' => 'btn btn-success', 'name' => 'submit', 'value' => 'Mettre a jour');
echo form_open($this->uri->uri_string());
?>
<p>
    <span class="form-inline">
        <?php echo 'Pseudo: '.form_input($username); ?>
    </span>
    <span class="form-inline">
        <?php echo 'Email: '.form_input($email); ?>
    </span>
    <span class="form-inline">
        <?php echo 'Prenom: '.form_input($firstname); ?>
    </span>
    <span class="form-inline">
        <?php echo 'Nom: '.form_input($lastname); ?>
    </span>
    <span class="form-inline">
        <?php echo 'Role: '.form_dropdown('role',$role_options, $user_info->role_id); ?>
    </span>
</p>
<p class="form-actions"><?php echo form_submit($submit); ?></p>

<?php form_close(); ?>